<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        /* 
        1数组的创建方式
        2数组的api

        */
       /* var arr=new Array(5) */
       /* var arr=new Array(1,2,3) */
       var arr=[1,2,3]
       var arr1=[4,5,6]
       var arrall=arr.concat(arr1)
       arrall.push(7)
       arrall.pop()
       console.log(arrall)
       console.log(arrall.length);
       
    </script>
</head>
<body>
    
</body>
</html>